package com.wicket.okrpbff.biz.service.impl;

import cn.hutool.core.bean.BeanUtil;
import com.wicket.okrcomponent.integration.dto.*;
import com.wicket.okrframework.integration.dto.*;
import com.wicket.okrpbff.biz.service.MessageService;
import com.wicket.okrpbff.biz.service.dto.common.BffMemberVirtualImageDto;
import com.wicket.okrpbff.biz.service.dto.common.BffMessagePositionDto;
import com.wicket.okrpbff.biz.service.dto.common.BffMessageTemplateDto;
import com.wicket.okrpbff.biz.service.dto.common.BffVirtualImageDto;
import com.wicket.okrpbff.biz.service.dto.req.*;
import com.wicket.okrpbff.biz.service.dto.res.*;
import com.wicket.okrpbff.common.ro.OkrResult;
import com.wicket.okrpbff.common.ro.OkrResult;
import com.wicket.okrpbff.common.util.CommonFunctionHelper;
import com.wicket.okrpbff.common.util.RedisUtil;
import javax.annotation.Resource;
import org.apache.skywalking.apm.toolkit.trace.Tag;
import org.apache.skywalking.apm.toolkit.trace.Tags;
import org.apache.skywalking.apm.toolkit.trace.Trace;
import org.springframework.stereotype.Service;
import com.wicket.okrcomponent.integration.FwCompMessageClient;
import com.wicket.okrpbff.common.exception.Assert;
import com.wicket.okrframework.integration.FwBaseInductionRecordClient;

import java.util.stream.Collectors;
import cn.hutool.core.collection.CollectionUtil;
import com.wicket.okrapp.integration.FwAppMessageClient;
import com.wicket.okrapp.integration.dto.ImplementMultiSpaceCompinitMsgLocQtyComRespDto;
import com.wicket.okrapp.integration.dto.ImplementMultiSpaceCompinitMsgLocQtyComReqDto;

/**
 * @author ：
 * @date ：
 *
 *
 * @version 1.0
 */
@Service
public class MessageServiceImpl implements MessageService {

  @Resource
  private RedisUtil redisUtil;
@Resource
  FwCompMessageClient fwCompMessageClient;
@Resource
  FwBaseInductionRecordClient fwBaseInductionRecordClient;
@Resource
  FwAppMessageClient fwAppMessageClient;
/**
   * B2存档消息位置(管理)[6798]
   * gen by moon at 5/16/2023, 9:19:42 PM
   */
    @Trace(operationName = "B2存档消息位置(管理)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffArchiveMessagePositionRespDto archiveMessagePosition(BffArchiveMessagePositionReqDto reqDto){
      
       
       //步骤0: D2存档消息位置 - archiveMessagePosition
     ArchiveMessagePositionRespDto archiveMessagePositionRespDto = null;
    ArchiveMessagePositionReqDto archiveMessagePositionReqDto=new ArchiveMessagePositionReqDto();
  if(reqDto!=null){
      archiveMessagePositionReqDto.setMessageLocationId(reqDto.getMessageLocationId());//SimpleFieldAssign//sourceId:949697_1
    }
  
    /*D2存档消息位置[6797]   */
    Assert.isNull(archiveMessagePositionReqDto.getMessageLocationId(),"B2存档消息位置(管理)-D2存档消息位置-消息位置ID不能为空",false);
      archiveMessagePositionRespDto = fwCompMessageClient.archiveMessagePosition(archiveMessagePositionReqDto).getData()/*vcase invoke 跨dubbo调用;*/;
      
      
      
    
BffArchiveMessagePositionRespDto retData = new BffArchiveMessagePositionRespDto();
  
  

  
  
return retData;
  }
/**
   * B2新增消息模板(管理)[6720]
   * gen by moon at 5/16/2023, 9:28:55 PM
   */
    @Trace(operationName = "B2新增消息模板(管理)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffAddMessageTemplateRespDto addMessageTemplate(BffAddMessageTemplateReqDto reqDto){
      
       
       AddMessageTemplateRespDto addMessageTemplateRespDto_1 =null;
//步骤0: D2新增消息模板 - addMessageTemplate
     AddMessageTemplateRespDto addMessageTemplateRespDto = null;
    AddMessageTemplateReqDto addMessageTemplateReqDto=new AddMessageTemplateReqDto();
  if(reqDto!=null){
      addMessageTemplateReqDto.setMessageTemplateCode(reqDto.getMessageTemplateCode());//SimpleFieldAssign//sourceId:946314_1
addMessageTemplateReqDto.setMessageTemplateName(reqDto.getMessageTemplateName());//SimpleFieldAssign//sourceId:946315_1
addMessageTemplateReqDto.setRelationBehaviorTypeCode(reqDto.getRelationBehaviorTypeCode());//SimpleFieldAssign//sourceId:946316_1
addMessageTemplateReqDto.setMessageChannelTypeCode(reqDto.getMessageChannelTypeCode());//SimpleFieldAssign//sourceId:946317_1
addMessageTemplateReqDto.setMessageTemplateType(reqDto.getMessageTemplateType());//SimpleFieldAssign//sourceId:946319_1
addMessageTemplateReqDto.setMessageContentUrl(reqDto.getMessageContentUrl());//SimpleFieldAssign//sourceId:946320_1
addMessageTemplateReqDto.setMessageReadMode(reqDto.getMessageReadMode());//SimpleFieldAssign//sourceId:946321_1
addMessageTemplateReqDto.setMessageDiffuse(reqDto.getMessageDiffuse());//SimpleFieldAssign//sourceId:946322_1
addMessageTemplateReqDto.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:946323_1
    }
  
    /*D2新增消息模板[6719]   */
    Assert.isNull(addMessageTemplateReqDto.getMessageTemplateCode(),"B2新增消息模板(管理)-D2新增消息模板-消息模板标识不能为空",false);
Assert.isNull(addMessageTemplateReqDto.getMessageTemplateName(),"B2新增消息模板(管理)-D2新增消息模板-消息模板名称 不能为空",false);
Assert.isNull(addMessageTemplateReqDto.getRelationBehaviorTypeCode(),"B2新增消息模板(管理)-D2新增消息模板-关联行为类型编码  不能为空",false);
Assert.isNull(addMessageTemplateReqDto.getMessageChannelTypeCode(),"B2新增消息模板(管理)-D2新增消息模板-通道类型编码不能为空",false);
Assert.isNull(addMessageTemplateReqDto.getMessageTemplateType(),"B2新增消息模板(管理)-D2新增消息模板-消息模板类型不能为空",false);
Assert.isNull(addMessageTemplateReqDto.getMessageReadMode(),"B2新增消息模板(管理)-D2新增消息模板-消息已读方式 不能为空",false);
Assert.isNull(addMessageTemplateReqDto.getMessageDiffuse(),"B2新增消息模板(管理)-D2新增消息模板-消息传播方式不能为空",false);
Assert.isNull(addMessageTemplateReqDto.getSubjectLifeCycle(),"B2新增消息模板(管理)-D2新增消息模板-主体生命周期不能为空",false);
      addMessageTemplateRespDto = fwCompMessageClient.addMessageTemplate(addMessageTemplateReqDto).getData()/*vcase invoke 跨dubbo调用;*/;
      
      
      addMessageTemplateRespDto_1 = addMessageTemplateRespDto;
    
BffAddMessageTemplateRespDto retData = new BffAddMessageTemplateRespDto();
  if(addMessageTemplateRespDto_1!=null){
      retData.setMessageTemplateId(addMessageTemplateRespDto_1.getMessageTemplateId());//SimpleFieldAssign//sourceId:946335_1
    }
  

  
  
return retData;
  }
/**
   * B2查询消息模板列表(管理)[6725]
   * gen by moon at 5/17/2023, 4:08:22 AM
   */
    @Trace(operationName = "B2查询消息模板列表(管理)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffQueryMessageTemplateListRespDto queryMessageTemplateList(BffQueryMessageTemplateListReqDto reqDto){
      
       
       QueryMessageTemplateListRespDto queryMessageTemplateListRespDto_1 =null;
BatchQueryInductionRecordComRespDto batchQueryInductionRecordComRespDto_1 =null;
//步骤0: D2查询消息模板列表 - queryMessageTemplateList
     QueryMessageTemplateListRespDto queryMessageTemplateListRespDto = null;
    QueryMessageTemplateListReqDto queryMessageTemplateListReqDto=new QueryMessageTemplateListReqDto();
  if(reqDto!=null){
      queryMessageTemplateListReqDto.setMessageTemplateName(reqDto.getMessageTemplateName());//SimpleFieldAssign//sourceId:946679_1
queryMessageTemplateListReqDto.setMessageTemplateType(reqDto.getMessageTemplateType());//SimpleFieldAssign//sourceId:946681_1
queryMessageTemplateListReqDto.setMessageReadMode(reqDto.getMessageReadMode());//SimpleFieldAssign//sourceId:946682_1
queryMessageTemplateListReqDto.setMessageDiffuse(reqDto.getMessageDiffuse());//SimpleFieldAssign//sourceId:946683_1
queryMessageTemplateListReqDto.setIsArchive(reqDto.getIsArchive());//SimpleFieldAssign//sourceId:946684_1
    }
  
    /*D2查询消息模板列表[6724]   */
    Assert.isNull(queryMessageTemplateListReqDto.getIsArchive(),"B2查询消息模板列表(管理)-D2查询消息模板列表-是否存档不能为空",false);
      queryMessageTemplateListRespDto = fwCompMessageClient.queryMessageTemplateList(queryMessageTemplateListReqDto).getData()/*vcase invoke 跨dubbo调用;*/;
      
      
      queryMessageTemplateListRespDto_1 = queryMessageTemplateListRespDto;
    
//步骤1: D1-3批量查询就职记录(管理)(公共) - batchQueryInductionRecordCom
     BatchQueryInductionRecordComRespDto batchQueryInductionRecordComRespDto = null;
    if(queryMessageTemplateListRespDto !=null){
          BatchQueryInductionRecordComReqDto batchQueryInductionRecordComReqDto=new BatchQueryInductionRecordComReqDto();
  if(queryMessageTemplateListRespDto!= null&&  queryMessageTemplateListRespDto.getMessageTemplateList() !=null&& !CollectionUtil.isEmpty(queryMessageTemplateListRespDto.getMessageTemplateList())){
      batchQueryInductionRecordComReqDto.setOrgInductionRecordList(queryMessageTemplateListRespDto.getMessageTemplateList().stream().map(item->item.getOperationInductionId())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:946692_1
    }
  
    /*D1-3批量查询就职记录(管理)(公共)[5024]   */
    
      batchQueryInductionRecordComRespDto = fwBaseInductionRecordClient.batchQueryInductionRecordCom(batchQueryInductionRecordComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;
      
      
      batchQueryInductionRecordComRespDto_1 = batchQueryInductionRecordComRespDto;
           }
    
BffQueryMessageTemplateListRespDto retData = new BffQueryMessageTemplateListRespDto();
  //数据集融合  MoreListToOneSource
        if(queryMessageTemplateListRespDto_1!= null && !CollectionUtil.isEmpty(queryMessageTemplateListRespDto_1.getMessageTemplateList()) ){
          for (MessageTemplateDto messageTemplateDto : queryMessageTemplateListRespDto_1.getMessageTemplateList()) {
              BffMessageTemplateDto retElm = new BffMessageTemplateDto();
             if(queryMessageTemplateListRespDto_1!=null){
      retElm.setMessageTemplateId(messageTemplateDto.getMessageTemplateId());//SimpleFieldAssign//sourceId:202424_2
retElm.setMessageTemplateCode(messageTemplateDto.getMessageTemplateCode());//SimpleFieldAssign//sourceId:202425_2
retElm.setMessageTemplateName(messageTemplateDto.getMessageTemplateName());//SimpleFieldAssign//sourceId:202426_2
retElm.setSubjectLifeCycle(messageTemplateDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:202427_2
retElm.setOperationInductionId(messageTemplateDto.getOperationInductionId());//SimpleFieldAssign//sourceId:202428_2
retElm.setOperateTime(messageTemplateDto.getOperateTime());//SimpleFieldAssign//sourceId:202429_2
    }
              retData.getMessageTemplateList().add(retElm);
               if(batchQueryInductionRecordComRespDto_1!= null){
          for (OrgInductionRecordDto orgInductionRecordDto : batchQueryInductionRecordComRespDto_1.getOrgInductionRecordList()) {
                if (orgInductionRecordDto.getInductionRecordId().equals(messageTemplateDto.getOperationInductionId())) {
                 if(batchQueryInductionRecordComRespDto_1!=null){
      retElm.setUserId(orgInductionRecordDto.getUserId());//SimpleFieldAssign//sourceId:202822_2
retElm.setOriginalRoleMemberId(orgInductionRecordDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:202821_2
retElm.setIdCardName(orgInductionRecordDto.getIdCardName());//SimpleFieldAssign//sourceId:202691_2
retElm.setNickName(orgInductionRecordDto.getNickName());//SimpleFieldAssign//sourceId:202692_2
retElm.setUserFace(orgInductionRecordDto.getUserFace());//SimpleFieldAssign//sourceId:202690_2
    }
                }
            }
          }

          }
        }//sourceId:946720_1
  

  retData.setPageNum(queryMessageTemplateListRespDto.getPageNum());
        retData.setPageSize(queryMessageTemplateListRespDto.getPageSize());
        retData.setTotal(queryMessageTemplateListRespDto.getTotalNum());
        retData.setIsLastPage((Math.ceil(Double.valueOf(queryMessageTemplateListRespDto.getTotalNum()) / Double.valueOf(queryMessageTemplateListRespDto.getPageSize()))) <= retData.getPageNum());
        
  
return retData;
  }
/**
   * B2新增虚拟形象(管理)[6746]
   * gen by moon at 6/5/2023, 1:45:16 AM
   */
    @Trace(operationName = "B2新增虚拟形象(管理)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffAddVirtualImageRespDto addVirtualImage(BffAddVirtualImageReqDto reqDto){
      
       
       AddVirtualImageRespDto addVirtualImageRespDto_1 =null;
//步骤0: D2新增虚拟形象 - addVirtualImage
     AddVirtualImageRespDto addVirtualImageRespDto = null;
    AddVirtualImageReqDto addVirtualImageReqDto=new AddVirtualImageReqDto();
  if(reqDto!=null){
      addVirtualImageReqDto.setVirtualImageCode(reqDto.getVirtualImageCode());//SimpleFieldAssign//sourceId:1005348_1
      addVirtualImageReqDto.setVirtualImageName(reqDto.getVirtualImageName());//SimpleFieldAssign//sourceId:946609_1
addVirtualImageReqDto.setVirtualImage(reqDto.getVirtualImage());//SimpleFieldAssign//sourceId:946610_1
addVirtualImageReqDto.setVirtualImageDesc(reqDto.getVirtualImageDesc());//SimpleFieldAssign//sourceId:946611_1
addVirtualImageReqDto.setCharacterClassicPhrase(reqDto.getCharacterClassicPhrase());//SimpleFieldAssign//sourceId:946612_1
addVirtualImageReqDto.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:946613_1
addVirtualImageReqDto.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:946614_1
addVirtualImageReqDto.setSceneTypeCode(reqDto.getSceneTypeCode());//SimpleFieldAssign//sourceId:946615_1
addVirtualImageReqDto.setSceneSubTypeCode(reqDto.getSceneSubTypeCode());//SimpleFieldAssign//sourceId:1005323_1
addVirtualImageReqDto.setIsCustomImage(reqDto.getIsCustomImage());//SimpleFieldAssign//sourceId:946616_1
addVirtualImageReqDto.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:946617_1
    }
  
    /*D2新增虚拟形象[6740]   */
    Assert.isNull(addVirtualImageReqDto.getVirtualImageName(),"B2新增虚拟形象(管理)-D2新增虚拟形象-虚拟形象名称不能为空",false);
Assert.isNull(addVirtualImageReqDto.getVirtualImage(),"B2新增虚拟形象(管理)-D2新增虚拟形象-虚拟形象图片不能为空",false);
Assert.isNull(addVirtualImageReqDto.getVirtualImageDesc(),"B2新增虚拟形象(管理)-D2新增虚拟形象-虚拟形象简介不能为空",false);
Assert.isNull(addVirtualImageReqDto.getCharacterClassicPhrase(),"B2新增虚拟形象(管理)-D2新增虚拟形象-人物经典语句不能为空",false);
Assert.isNull(addVirtualImageReqDto.getSceneTypeCode(),"B2新增虚拟形象(管理)-D2新增虚拟形象-使用场景类型编码不能为空",false);
Assert.isNull(addVirtualImageReqDto.getIsCustomImage(),"B2新增虚拟形象(管理)-D2新增虚拟形象-是否自定义形象不能为空",false);
Assert.isNull(addVirtualImageReqDto.getSubjectLifeCycle(),"B2新增虚拟形象(管理)-D2新增虚拟形象-主体生命周期不能为空",false);
      addVirtualImageRespDto = fwCompMessageClient.addVirtualImage(addVirtualImageReqDto).getData()/*vcase invoke 跨dubbo调用;*/;
      
      
      addVirtualImageRespDto_1 = addVirtualImageRespDto;
    
BffAddVirtualImageRespDto retData = new BffAddVirtualImageRespDto();
  if(addVirtualImageRespDto_1!=null){
      retData.setVirtualImageId(addVirtualImageRespDto_1.getVirtualImageId());//SimpleFieldAssign//sourceId:948677_1
    }
  

  
  
return retData;
  }
/**
   * B2修改虚拟形象(管理)[6747]
   * gen by moon at 8/12/2023, 9:23:14 PM
   */
    @Trace(operationName = "B2修改虚拟形象(管理)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffUpdateVirtualImageRespDto updateVirtualImage(BffUpdateVirtualImageReqDto reqDto){
      
       
       //步骤0: D2修改虚拟形象 - updateVirtualImage
     UpdateVirtualImageRespDto updateVirtualImageRespDto = null;
    UpdateVirtualImageReqDto updateVirtualImageReqDto=new UpdateVirtualImageReqDto();
  if(reqDto!=null){
      updateVirtualImageReqDto.setVirtualImageId(reqDto.getVirtualImageId());//SimpleFieldAssign//sourceId:946661_1
updateVirtualImageReqDto.setVirtualImageCode(reqDto.getVirtualImageCode());//SimpleFieldAssign//sourceId:1111359_1
updateVirtualImageReqDto.setVirtualImageName(reqDto.getVirtualImageName());//SimpleFieldAssign//sourceId:946662_1
updateVirtualImageReqDto.setVirtualImage(reqDto.getVirtualImage());//SimpleFieldAssign//sourceId:946663_1
updateVirtualImageReqDto.setVirtualImageDesc(reqDto.getVirtualImageDesc());//SimpleFieldAssign//sourceId:946664_1
updateVirtualImageReqDto.setCharacterClassicPhrase(reqDto.getCharacterClassicPhrase());//SimpleFieldAssign//sourceId:946665_1
updateVirtualImageReqDto.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:946666_1
    }
  
    /*D2修改虚拟形象[6741]   */
    Assert.isNull(updateVirtualImageReqDto.getVirtualImageId(),"B2修改虚拟形象(管理)-D2修改虚拟形象-虚拟形象ID不能为空",false);
      updateVirtualImageRespDto = fwCompMessageClient.updateVirtualImage(updateVirtualImageReqDto).getData()/*vcase invoke 跨dubbo调用;*/;
      
      
      
    
BffUpdateVirtualImageRespDto retData = new BffUpdateVirtualImageRespDto();
  
  

  
  
return retData;
  }
/**
   * B2删除虚拟形象(管理)[6748]
   * gen by moon at 5/16/2023, 9:29:05 PM
   */
    @Trace(operationName = "B2删除虚拟形象(管理)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffDeleteVirtualImageRespDto deleteVirtualImage(BffDeleteVirtualImageReqDto reqDto){
      
       
       //步骤0: D2删除虚拟形象 - deleteVirtualImage
     DeleteVirtualImageRespDto deleteVirtualImageRespDto = null;
    DeleteVirtualImageReqDto deleteVirtualImageReqDto=new DeleteVirtualImageReqDto();
  if(reqDto!=null){
      deleteVirtualImageReqDto.setVirtualImageId(reqDto.getVirtualImageId());//SimpleFieldAssign//sourceId:946696_1
    }
  
    /*D2删除虚拟形象[6742]   */
    Assert.isNull(deleteVirtualImageReqDto.getVirtualImageId(),"B2删除虚拟形象(管理)-D2删除虚拟形象-虚拟形象ID不能为空",false);
      deleteVirtualImageRespDto = fwCompMessageClient.deleteVirtualImage(deleteVirtualImageReqDto).getData()/*vcase invoke 跨dubbo调用;*/;
      
      
      
    
BffDeleteVirtualImageRespDto retData = new BffDeleteVirtualImageRespDto();
  
  

  
  
return retData;
  }
/**
   * B2存档虚拟形象(管理)[6749]
   * gen by moon at 5/29/2023, 2:29:43 PM
   */
    @Trace(operationName = "B2存档虚拟形象(管理)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffArchiveVirtualImageRespDto archiveVirtualImage(BffArchiveVirtualImageReqDto reqDto){
      
       
       //步骤0: D2存档虚拟形象 - archiveVirtualImage
     ArchiveVirtualImageRespDto archiveVirtualImageRespDto = null;
    ArchiveVirtualImageReqDto archiveVirtualImageReqDto=new ArchiveVirtualImageReqDto();
  archiveVirtualImageReqDto.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:990365_1
  if(reqDto!=null){
      archiveVirtualImageReqDto.setVirtualImageId(reqDto.getVirtualImageId());//SimpleFieldAssign//sourceId:946740_1
    }
  
    /*D2存档虚拟形象[6743]   */
    Assert.isNull(archiveVirtualImageReqDto.getVirtualImageId(),"B2存档虚拟形象(管理)-D2存档虚拟形象-虚拟形象ID不能为空",false);
Assert.isNull(archiveVirtualImageReqDto.getSubjectLifeCycle(),"B2存档虚拟形象(管理)-D2存档虚拟形象-主体生命周期不能为空",false);
      archiveVirtualImageRespDto = fwCompMessageClient.archiveVirtualImage(archiveVirtualImageReqDto).getData()/*vcase invoke 跨dubbo调用;*/;
      
      
      
    
BffArchiveVirtualImageRespDto retData = new BffArchiveVirtualImageRespDto();
  
  

  
  
return retData;
  }
/**
   * B2查询虚拟形象详情(管理)[6750]
   * gen by moon at 8/5/2023, 8:40:23 PM
   */
    @Trace(operationName = "B2查询虚拟形象详情(管理)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffQueryVirtualImageDetailRespDto queryVirtualImageDetail(BffQueryVirtualImageDetailReqDto reqDto){
      
       
       QueryVirtualImageDetailRespDto queryVirtualImageDetailRespDto_1 =null;
QueryInductionRecordInfoDetailComRespDto queryInductionRecordInfoDetailComRespDto_1 =null;
//步骤0: D2查询虚拟形象详情 - queryVirtualImageDetail
     QueryVirtualImageDetailRespDto queryVirtualImageDetailRespDto = null;
    QueryVirtualImageDetailReqDto queryVirtualImageDetailReqDto=new QueryVirtualImageDetailReqDto();
  if(reqDto!=null){
      queryVirtualImageDetailReqDto.setVirtualImageId(reqDto.getVirtualImageId());//SimpleFieldAssign//sourceId:946805_1
    }
  
    /*D2查询虚拟形象详情[6744]   */
    Assert.isNull(queryVirtualImageDetailReqDto.getVirtualImageId(),"B2查询虚拟形象详情(管理)-D2查询虚拟形象详情-虚拟形象ID不能为空",false);
      queryVirtualImageDetailRespDto = fwCompMessageClient.queryVirtualImageDetail(queryVirtualImageDetailReqDto).getData()/*vcase invoke 跨dubbo调用;*/;
      
      
      queryVirtualImageDetailRespDto_1 = queryVirtualImageDetailRespDto;
    
//步骤1: D1-3查询个人就职记录信息详情（公共） - queryInductionRecordInfoDetailCom
     QueryInductionRecordInfoDetailComRespDto queryInductionRecordInfoDetailComRespDto = null;
    if(queryVirtualImageDetailRespDto !=null){
          QueryInductionRecordInfoDetailComReqDto queryInductionRecordInfoDetailComReqDto=new QueryInductionRecordInfoDetailComReqDto();
  if(queryVirtualImageDetailRespDto!=null){
      queryInductionRecordInfoDetailComReqDto.setInductionRecordId(queryVirtualImageDetailRespDto.getOperationInductionId());//SimpleFieldAssign//sourceId:947843_1
    }
  
    /*D1-3查询个人就职记录信息详情（公共）[715]   */
    Assert.isNull(queryInductionRecordInfoDetailComReqDto.getInductionRecordId(),"B2查询虚拟形象详情(管理)-D1-3查询个人就职记录信息详情（公共）-就职记录ID不能为空",false);
      queryInductionRecordInfoDetailComRespDto = fwBaseInductionRecordClient.queryInductionRecordInfoDetailCom(queryInductionRecordInfoDetailComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;
      
      
      queryInductionRecordInfoDetailComRespDto_1 = queryInductionRecordInfoDetailComRespDto;
           }
    
BffQueryVirtualImageDetailRespDto retData = new BffQueryVirtualImageDetailRespDto();
  if(queryVirtualImageDetailRespDto_1!=null){
      retData.setVirtualImageId(queryVirtualImageDetailRespDto_1.getVirtualImageId());//SimpleFieldAssign//sourceId:946819_1
retData.setVirtualImageCode(queryVirtualImageDetailRespDto_1.getVirtualImageCode());//SimpleFieldAssign//sourceId:1005344_1
retData.setVirtualImageName(queryVirtualImageDetailRespDto_1.getVirtualImageName());//SimpleFieldAssign//sourceId:946820_1
retData.setVirtualImage(queryVirtualImageDetailRespDto_1.getVirtualImage());//SimpleFieldAssign//sourceId:946821_1
retData.setVirtualImageDesc(queryVirtualImageDetailRespDto_1.getVirtualImageDesc());//SimpleFieldAssign//sourceId:946822_1
retData.setCharacterClassicPhrase(queryVirtualImageDetailRespDto_1.getCharacterClassicPhrase());//SimpleFieldAssign//sourceId:946823_1
retData.setOriginalRoleMemberId(queryVirtualImageDetailRespDto_1.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:946824_1
retData.setUserId(queryVirtualImageDetailRespDto_1.getUserId());//SimpleFieldAssign//sourceId:946825_1
retData.setSceneTypeCode(queryVirtualImageDetailRespDto_1.getSceneTypeCode());//SimpleFieldAssign//sourceId:946826_1
retData.setSceneSubTypeCode(queryVirtualImageDetailRespDto_1.getSceneSubTypeCode());//SimpleFieldAssign//sourceId:1005329_1
retData.setIsCustomImage(queryVirtualImageDetailRespDto_1.getIsCustomImage());//SimpleFieldAssign//sourceId:946827_1
retData.setSubjectLifeCycle(queryVirtualImageDetailRespDto_1.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:946828_1
retData.setOperationInductionId(queryVirtualImageDetailRespDto_1.getOperationInductionId());//SimpleFieldAssign//sourceId:946829_1
retData.setOperateTime(queryVirtualImageDetailRespDto_1.getOperateTime());//SimpleFieldAssign//sourceId:946830_1
    }
if(queryInductionRecordInfoDetailComRespDto_1!=null){
      retData.setIdCardName(queryInductionRecordInfoDetailComRespDto_1.getIdCardName());//SimpleFieldAssign//sourceId:947854_1
retData.setNickName(queryInductionRecordInfoDetailComRespDto_1.getNickName());//SimpleFieldAssign//sourceId:947855_1
retData.setUserFace(queryInductionRecordInfoDetailComRespDto_1.getUserFace());//SimpleFieldAssign//sourceId:947856_1
    }
  

  
  
return retData;
  }
/**
   * B2查询虚拟形象列表(管理)[6751]
   * gen by moon at 6/7/2023, 6:55:37 AM
   */
    @Trace(operationName = "B2查询虚拟形象列表(管理)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffQueryVirtualImageListRespDto queryVirtualImageList(BffQueryVirtualImageListReqDto reqDto){
      
       
       QueryVirtualImageListRespDto queryVirtualImageListRespDto_1 =null;
BatchQueryInductionRecordComRespDto batchQueryInductionRecordComRespDto_1 =null;
//步骤0: D2查询虚拟形象列表 - queryVirtualImageList
     QueryVirtualImageListRespDto queryVirtualImageListRespDto = null;
    QueryVirtualImageListReqDto queryVirtualImageListReqDto=new QueryVirtualImageListReqDto();
  if(reqDto!=null){
      queryVirtualImageListReqDto.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:972346_1
      queryVirtualImageListReqDto.setIsCustomImage(reqDto.getIsCustomImage());//SimpleFieldAssign//sourceId:946864_1
queryVirtualImageListReqDto.setSceneTypeCode(reqDto.getSceneTypeCode());//SimpleFieldAssign//sourceId:949627_1
queryVirtualImageListReqDto.setSceneSubTypeCode(reqDto.getSceneSubTypeCode());//SimpleFieldAssign//sourceId:1004747_1
queryVirtualImageListReqDto.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:976983_1
queryVirtualImageListReqDto.setIsArchive(reqDto.getIsArchive());//SimpleFieldAssign//sourceId:946865_1
    }
  
    /*D2查询虚拟形象列表[6745]   */
    Assert.isNull(queryVirtualImageListReqDto.getIsArchive(),"B2查询虚拟形象列表(管理)-D2查询虚拟形象列表-是否存档不能为空",false);
      queryVirtualImageListRespDto = fwCompMessageClient.queryVirtualImageList(queryVirtualImageListReqDto).getData()/*vcase invoke 跨dubbo调用;*/;
      
      
      queryVirtualImageListRespDto_1 = queryVirtualImageListRespDto;
    
//步骤1: D1-3批量查询就职记录(管理)(公共) - batchQueryInductionRecordCom
     BatchQueryInductionRecordComRespDto batchQueryInductionRecordComRespDto = null;
    if(queryVirtualImageListRespDto !=null){
          BatchQueryInductionRecordComReqDto batchQueryInductionRecordComReqDto=new BatchQueryInductionRecordComReqDto();
  if(queryVirtualImageListRespDto!= null&&  queryVirtualImageListRespDto.getVirtualImageList() !=null&& !CollectionUtil.isEmpty(queryVirtualImageListRespDto.getVirtualImageList())){
      batchQueryInductionRecordComReqDto.setOrgInductionRecordList(queryVirtualImageListRespDto.getVirtualImageList().stream().map(item->item.getOperationInductionId())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:946870_1
    }
  
    /*D1-3批量查询就职记录(管理)(公共)[5024]   */
    
      batchQueryInductionRecordComRespDto = fwBaseInductionRecordClient.batchQueryInductionRecordCom(batchQueryInductionRecordComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;
      
      
      batchQueryInductionRecordComRespDto_1 = batchQueryInductionRecordComRespDto;
           }
    
BffQueryVirtualImageListRespDto retData = new BffQueryVirtualImageListRespDto();
  //数据集融合  MoreListToOneSource
        if(queryVirtualImageListRespDto_1!= null && !CollectionUtil.isEmpty(queryVirtualImageListRespDto_1.getVirtualImageList()) ){
          for (VirtualImageDto virtualImageDto : queryVirtualImageListRespDto_1.getVirtualImageList()) {
              BffVirtualImageDto retElm = new BffVirtualImageDto();
             if(queryVirtualImageListRespDto_1!=null){
      retElm.setVirtualImageId(virtualImageDto.getVirtualImageId());//SimpleFieldAssign//sourceId:202464_2
retElm.setVirtualImageCode(virtualImageDto.getVirtualImageCode());//SimpleFieldAssign//sourceId:213558_2
retElm.setVirtualImageName(virtualImageDto.getVirtualImageName());//SimpleFieldAssign//sourceId:202465_2
retElm.setVirtualImage(virtualImageDto.getVirtualImage());//SimpleFieldAssign//sourceId:205005_2
retElm.setCharacterClassicPhrase(virtualImageDto.getCharacterClassicPhrase());//SimpleFieldAssign//sourceId:205006_2
retElm.setVirtualImageDesc(virtualImageDto.getVirtualImageDesc());//SimpleFieldAssign//sourceId:207351_2
retElm.setSceneTypeCode(virtualImageDto.getSceneTypeCode());//SimpleFieldAssign//sourceId:202466_2
retElm.setIsCustomImage(virtualImageDto.getIsCustomImage());//SimpleFieldAssign//sourceId:205249_2
retElm.setSceneSubTypeCode(virtualImageDto.getSceneSubTypeCode());//SimpleFieldAssign//sourceId:213553_2
retElm.setSubjectLifeCycle(virtualImageDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:202467_2
retElm.setOperateTime(virtualImageDto.getOperateTime());//SimpleFieldAssign//sourceId:202471_2
retElm.setOperationInductionId(virtualImageDto.getOperationInductionId());//SimpleFieldAssign//sourceId:202469_2
    }
              retData.getVirtualImageList().add(retElm);
               if(batchQueryInductionRecordComRespDto_1!= null){
          for (OrgInductionRecordDto orgInductionRecordDto : batchQueryInductionRecordComRespDto_1.getOrgInductionRecordList()) {
                if (orgInductionRecordDto.getInductionRecordId().equals(virtualImageDto.getOperationInductionId())) {
                 if(batchQueryInductionRecordComRespDto_1!=null){
      retElm.setUserId(orgInductionRecordDto.getUserId());//SimpleFieldAssign//sourceId:202819_2
retElm.setIdCardName(orgInductionRecordDto.getIdCardName());//SimpleFieldAssign//sourceId:202470_2
retElm.setUserFace(orgInductionRecordDto.getUserFace());//SimpleFieldAssign//sourceId:202468_2
retElm.setNickName(orgInductionRecordDto.getNickName());//SimpleFieldAssign//sourceId:202472_2
    }
                }
            }
          }

          }
        }//sourceId:946874_1
  

  retData.setPageNum(queryVirtualImageListRespDto.getPageNum());
        retData.setPageSize(queryVirtualImageListRespDto.getPageSize());
        retData.setTotal(queryVirtualImageListRespDto.getTotalNum());
        retData.setIsLastPage((Math.ceil(Double.valueOf(queryVirtualImageListRespDto.getTotalNum()) / Double.valueOf(queryVirtualImageListRespDto.getPageSize()))) <= retData.getPageNum());

  
return retData;
  }
/**
   * B2新增成员虚拟形象(管理)[6757]
   * gen by moon at 12/11/2023, 3:09:47 AM
   */
    @Trace(operationName = "B2新增成员虚拟形象(管理)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffAddMemberVirtualImageRespDto addMemberVirtualImage(BffAddMemberVirtualImageReqDto reqDto){
      
       
       AddMemberVirtualImageRespDto addMemberVirtualImageRespDto_1 =null;
//virtualUsage D2查询成员所在空间使用场景及子场景已启用的当前展示用途类型的当前有效的虚拟形象详情  41818
      QueryMemberVirtualImageDetailComRespDto queryMemberVirtualImageDetailComRespDto = null;
    QueryMemberVirtualImageDetailComReqDto queryMemberVirtualImageDetailComReqDto=new QueryMemberVirtualImageDetailComReqDto();
  queryMemberVirtualImageDetailComReqDto.setIsOpen("TRUE");//sourceId:948147_1_41818
queryMemberVirtualImageDetailComReqDto.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:948148_1_41818
if(reqDto!=null){
      queryMemberVirtualImageDetailComReqDto.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:948145_1_41818
queryMemberVirtualImageDetailComReqDto.setSceneTypeCode(reqDto.getSceneTypeCode());//SimpleFieldAssign//sourceId:948146_1_41818
queryMemberVirtualImageDetailComReqDto.setSceneSubTypeCode(reqDto.getSceneSubTypeCode());//SimpleFieldAssign//sourceId:1004774_1_41818
queryMemberVirtualImageDetailComReqDto.setVirtualImageViewType(reqDto.getVirtualImageViewType());//SimpleFieldAssign//sourceId:1004775_1_41818
queryMemberVirtualImageDetailComReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:948149_1_41818
    }
  
    /*D2查询成员所在空间使用场景及子场景已启用的当前展示用途类型的当前有效的虚拟形象详情[6755]   */
    Assert.isNull(queryMemberVirtualImageDetailComReqDto.getOriginalRoleMemberId(),"B2新增成员虚拟形象(管理)-D2查询成员所在空间使用场景及子场景已启用的当前展示用途类型的当前有效的虚拟形象详情-身份人员ID不能为空",false);
Assert.isNull(queryMemberVirtualImageDetailComReqDto.getSceneTypeCode(),"B2新增成员虚拟形象(管理)-D2查询成员所在空间使用场景及子场景已启用的当前展示用途类型的当前有效的虚拟形象详情-冗余使用场景类型编码不能为空",false);
Assert.isNull(queryMemberVirtualImageDetailComReqDto.getSceneSubTypeCode(),"B2新增成员虚拟形象(管理)-D2查询成员所在空间使用场景及子场景已启用的当前展示用途类型的当前有效的虚拟形象详情-使用场景子类型不能为空",false);
Assert.isNull(queryMemberVirtualImageDetailComReqDto.getVirtualImageViewType(),"B2新增成员虚拟形象(管理)-D2查询成员所在空间使用场景及子场景已启用的当前展示用途类型的当前有效的虚拟形象详情-虚拟形象展示用途类型不能为空",false);
Assert.isNull(queryMemberVirtualImageDetailComReqDto.getIsOpen(),"B2新增成员虚拟形象(管理)-D2查询成员所在空间使用场景及子场景已启用的当前展示用途类型的当前有效的虚拟形象详情-是否已启用不能为空",false);
Assert.isNull(queryMemberVirtualImageDetailComReqDto.getSubjectLifeCycle(),"B2新增成员虚拟形象(管理)-D2查询成员所在空间使用场景及子场景已启用的当前展示用途类型的当前有效的虚拟形象详情-主体生命周期不能为空",false);
Assert.isNull(queryMemberVirtualImageDetailComReqDto.getSpaceId(),"B2新增成员虚拟形象(管理)-D2查询成员所在空间使用场景及子场景已启用的当前展示用途类型的当前有效的虚拟形象详情-创建于空间ID不能为空",false);
      queryMemberVirtualImageDetailComRespDto = fwCompMessageClient.queryMemberVirtualImageDetailCom(queryMemberVirtualImageDetailComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;
      
      
      
if((queryMemberVirtualImageDetailComRespDto!= null&& queryMemberVirtualImageDetailComRespDto.getMemberVirtualImageId() != null )) {
        //if(D2查询成员所在空间使用场景已启用当前有效的虚拟形象详情.身份人员选用虚拟形象关系ID 值不等于空 )  41819
        
ArchiveMemberVirtualImageRespDto archiveMemberVirtualImageRespDto = null;
    if(queryMemberVirtualImageDetailComRespDto !=null){
          ArchiveMemberVirtualImageReqDto archiveMemberVirtualImageReqDto=new ArchiveMemberVirtualImageReqDto();
  if(queryMemberVirtualImageDetailComRespDto!=null){
      archiveMemberVirtualImageReqDto.setMemberVirtualImageId(queryMemberVirtualImageDetailComRespDto.getMemberVirtualImageId());//SimpleFieldAssign//sourceId:948150_1_41821
    }
  
    /*D2存档上一个成员虚拟形象以备新增[6779]   */
    Assert.isNull(archiveMemberVirtualImageReqDto.getMemberVirtualImageId(),"B2新增成员虚拟形象(管理)-D2存档上一个成员虚拟形象以备新增-身份人员选用虚拟形象关系ID不能为空",false);
      archiveMemberVirtualImageRespDto = fwCompMessageClient.archiveMemberVirtualImage(archiveMemberVirtualImageReqDto).getData()/*vcase invoke 跨dubbo调用;*/;
      
      
      
           }
      }
//virtualUsage D2新增成员虚拟形象  41823
      AddMemberVirtualImageRespDto addMemberVirtualImageRespDto = null;
    AddMemberVirtualImageReqDto addMemberVirtualImageReqDto=new AddMemberVirtualImageReqDto();
  addMemberVirtualImageReqDto.setIsOpen("TRUE");//sourceId:947151_1_41823
addMemberVirtualImageReqDto.setOpenTime(CommonFunctionHelper.getCurrentTime());//SYSTEM_CURRENT_TIME//sourceId:947152_1_41823
addMemberVirtualImageReqDto.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:947153_1_41823
if(reqDto!=null){
      addMemberVirtualImageReqDto.setVirtualImageId(reqDto.getVirtualImageId());//SimpleFieldAssign//sourceId:1089211_1_41823
addMemberVirtualImageReqDto.setVirtualImageCode(reqDto.getVirtualImageCode());//SimpleFieldAssign//sourceId:1089151_1_41823
addMemberVirtualImageReqDto.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:947147_1_41823
addMemberVirtualImageReqDto.setUserId(reqDto.getUserId());//SimpleFieldAssign//sourceId:947148_1_41823
addMemberVirtualImageReqDto.setSceneTypeCode(reqDto.getSceneTypeCode());//SimpleFieldAssign//sourceId:947149_1_41823
addMemberVirtualImageReqDto.setSceneSubTypeCode(reqDto.getSceneSubTypeCode());//SimpleFieldAssign//sourceId:1004802_1_41823
addMemberVirtualImageReqDto.setVirtualImageViewType(reqDto.getVirtualImageViewType());//SimpleFieldAssign//sourceId:1004803_1_41823
addMemberVirtualImageReqDto.setIsCustomImage(reqDto.getIsCustomImage());//SimpleFieldAssign//sourceId:947150_1_41823
addMemberVirtualImageReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:947434_1_41823
    }
  
    /*D2新增成员虚拟形象[6752]   */
    Assert.isNull(addMemberVirtualImageReqDto.getVirtualImageId(),"B2新增成员虚拟形象(管理)-D2新增成员虚拟形象-选用虚拟形象ID不能为空",false);
Assert.isNull(addMemberVirtualImageReqDto.getVirtualImageCode(),"B2新增成员虚拟形象(管理)-D2新增成员虚拟形象-虚拟形象标识不能为空",false);
Assert.isNull(addMemberVirtualImageReqDto.getOriginalRoleMemberId(),"B2新增成员虚拟形象(管理)-D2新增成员虚拟形象-身份人员ID不能为空",false);
Assert.isNull(addMemberVirtualImageReqDto.getUserId(),"B2新增成员虚拟形象(管理)-D2新增成员虚拟形象-冗余个人账号ID不能为空",false);
Assert.isNull(addMemberVirtualImageReqDto.getSceneTypeCode(),"B2新增成员虚拟形象(管理)-D2新增成员虚拟形象-冗余使用场景类型编码不能为空",false);
Assert.isNull(addMemberVirtualImageReqDto.getSceneSubTypeCode(),"B2新增成员虚拟形象(管理)-D2新增成员虚拟形象-使用场景子类型不能为空",false);
Assert.isNull(addMemberVirtualImageReqDto.getVirtualImageViewType(),"B2新增成员虚拟形象(管理)-D2新增成员虚拟形象-虚拟形象展示用途类型不能为空",false);
Assert.isNull(addMemberVirtualImageReqDto.getIsCustomImage(),"B2新增成员虚拟形象(管理)-D2新增成员虚拟形象-冗余是否自定义形象不能为空",false);
Assert.isNull(addMemberVirtualImageReqDto.getIsOpen(),"B2新增成员虚拟形象(管理)-D2新增成员虚拟形象-是否已启用不能为空",false);
Assert.isNull(addMemberVirtualImageReqDto.getOpenTime(),"B2新增成员虚拟形象(管理)-D2新增成员虚拟形象-启用时间不能为空",false);
Assert.isNull(addMemberVirtualImageReqDto.getSubjectLifeCycle(),"B2新增成员虚拟形象(管理)-D2新增成员虚拟形象-主体生命周期不能为空",false);
Assert.isNull(addMemberVirtualImageReqDto.getSpaceId(),"B2新增成员虚拟形象(管理)-D2新增成员虚拟形象-创建于空间ID不能为空",false);
      addMemberVirtualImageRespDto = fwCompMessageClient.addMemberVirtualImage(addMemberVirtualImageReqDto).getData()/*vcase invoke 跨dubbo调用;*/;
      
      
      addMemberVirtualImageRespDto_1 = addMemberVirtualImageRespDto;
BffAddMemberVirtualImageRespDto retData = new BffAddMemberVirtualImageRespDto();
  if(addMemberVirtualImageRespDto_1!=null){
      retData.setMemberVirtualImageId(addMemberVirtualImageRespDto_1.getMemberVirtualImageId());//SimpleFieldAssign//sourceId:947458_1
    }
  

  
  
return retData;
  }
/**
   * B2存档成员虚拟形象(管理)[6759]
   * gen by moon at 5/16/2023, 9:29:17 PM
   */
    @Trace(operationName = "B2存档成员虚拟形象(管理)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffArchiveMemberVirtualImageRespDto archiveMemberVirtualImage(BffArchiveMemberVirtualImageReqDto reqDto){
      
       
       //步骤0: D2存档成员虚拟形象 - archiveMemberVirtualImage
     ArchiveMemberVirtualImageRespDto archiveMemberVirtualImageRespDto = null;
    ArchiveMemberVirtualImageReqDto archiveMemberVirtualImageReqDto=new ArchiveMemberVirtualImageReqDto();
  if(reqDto!=null){
      archiveMemberVirtualImageReqDto.setMemberVirtualImageId(reqDto.getMemberVirtualImageId());//SimpleFieldAssign//sourceId:947827_1
    }
  
    /*D2存档成员虚拟形象[6779]   */
    Assert.isNull(archiveMemberVirtualImageReqDto.getMemberVirtualImageId(),"B2存档成员虚拟形象(管理)-D2存档成员虚拟形象-身份人员选用虚拟形象关系ID不能为空",false);
      archiveMemberVirtualImageRespDto = fwCompMessageClient.archiveMemberVirtualImage(archiveMemberVirtualImageReqDto).getData()/*vcase invoke 跨dubbo调用;*/;
      
      
      
    
BffArchiveMemberVirtualImageRespDto retData = new BffArchiveMemberVirtualImageRespDto();
  
  

  
  
return retData;
  }
/**
   * B2删除成员虚拟形象(管理)[6760]
   * gen by moon at 5/16/2023, 9:29:20 PM
   */
    @Trace(operationName = "B2删除成员虚拟形象(管理)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffDeleteMemberVirtualImageRespDto deleteMemberVirtualImage(BffDeleteMemberVirtualImageReqDto reqDto){
      
       
       //步骤0: D2删除成员虚拟形象 - deleteMemberVirtualImage
     DeleteMemberVirtualImageRespDto deleteMemberVirtualImageRespDto = null;
    DeleteMemberVirtualImageReqDto deleteMemberVirtualImageReqDto=new DeleteMemberVirtualImageReqDto();
  if(reqDto!=null){
      deleteMemberVirtualImageReqDto.setMemberVirtualImageId(reqDto.getMemberVirtualImageId());//SimpleFieldAssign//sourceId:948069_1
    }
  
    /*D2删除成员虚拟形象[6754]   */
    Assert.isNull(deleteMemberVirtualImageReqDto.getMemberVirtualImageId(),"B2删除成员虚拟形象(管理)-D2删除成员虚拟形象-身份人员选用虚拟形象关系ID不能为空",false);
      deleteMemberVirtualImageRespDto = fwCompMessageClient.deleteMemberVirtualImage(deleteMemberVirtualImageReqDto).getData()/*vcase invoke 跨dubbo调用;*/;
      
      
      
    
BffDeleteMemberVirtualImageRespDto retData = new BffDeleteMemberVirtualImageRespDto();
  
  

  
  
return retData;
  }
/**
   * B2查询成员虚拟形象详情(管理)[6761]
   * gen by moon at 12/11/2023, 3:09:50 AM
   */
    @Trace(operationName = "B2查询成员虚拟形象详情(管理)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffQueryMemberVirtualImageDetailRespDto queryMemberVirtualImageDetail(BffQueryMemberVirtualImageDetailReqDto reqDto){
      
       
       QueryMemberVirtualImageDetailComRespDto queryMemberVirtualImageDetailComRespDto_1 =null;
//步骤0: D2查询成员虚拟形象详情(公共) - queryMemberVirtualImageDetailCom
     QueryMemberVirtualImageDetailComRespDto queryMemberVirtualImageDetailComRespDto = null;
    QueryMemberVirtualImageDetailComReqDto queryMemberVirtualImageDetailComReqDto=new QueryMemberVirtualImageDetailComReqDto();

  
    /*D2查询成员虚拟形象详情(公共)[6755]   */
      
      queryMemberVirtualImageDetailComRespDto = fwCompMessageClient.queryMemberVirtualImageDetailCom(queryMemberVirtualImageDetailComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      queryMemberVirtualImageDetailComRespDto_1 = queryMemberVirtualImageDetailComRespDto;
    
BffQueryMemberVirtualImageDetailRespDto retData = new BffQueryMemberVirtualImageDetailRespDto();
  if(queryMemberVirtualImageDetailComRespDto_1!=null){
      retData.setMemberVirtualImageId(queryMemberVirtualImageDetailComRespDto_1.getMemberVirtualImageId());//SimpleFieldAssign//sourceId:948014_1
retData.setVirtualImageId(queryMemberVirtualImageDetailComRespDto_1.getVirtualImageId());//SimpleFieldAssign//sourceId:948015_1
retData.setOriginalRoleMemberId(queryMemberVirtualImageDetailComRespDto_1.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:948016_1
retData.setUserId(queryMemberVirtualImageDetailComRespDto_1.getUserId());//SimpleFieldAssign//sourceId:948017_1
retData.setSceneTypeCode(queryMemberVirtualImageDetailComRespDto_1.getSceneTypeCode());//SimpleFieldAssign//sourceId:948018_1
retData.setIsCustomImage(queryMemberVirtualImageDetailComRespDto_1.getIsCustomImage());//SimpleFieldAssign//sourceId:948019_1
retData.setIsOpen(queryMemberVirtualImageDetailComRespDto_1.getIsOpen());//SimpleFieldAssign//sourceId:948020_1
retData.setOpenTime(queryMemberVirtualImageDetailComRespDto_1.getOpenTime());//SimpleFieldAssign//sourceId:948021_1
retData.setSubjectLifeCycle(queryMemberVirtualImageDetailComRespDto_1.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:948022_1
retData.setOperationInductionId(queryMemberVirtualImageDetailComRespDto_1.getOperationInductionId());//SimpleFieldAssign//sourceId:948023_1
retData.setOperateTime(queryMemberVirtualImageDetailComRespDto_1.getOperateTime());//SimpleFieldAssign//sourceId:948024_1
    }
  

  
  
return retData;
  }
/**
   * B2查询成员虚拟形象列表(管理)[6762]
   * gen by moon at 6/2/2023, 8:24:15 PM
   */
    @Trace(operationName = "B2查询成员虚拟形象列表(管理)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffQueryMemberVirtualImageListRespDto queryMemberVirtualImageList(BffQueryMemberVirtualImageListReqDto reqDto){
      
       
       QueryMemberVirtualImageListRespDto queryMemberVirtualImageListRespDto_1 =null;
BatchQueryInductionRecordComRespDto batchQueryInductionRecordComRespDto_1 =null;
//步骤0: D2查询成员虚拟形象列表 - queryMemberVirtualImageList
     QueryMemberVirtualImageListRespDto queryMemberVirtualImageListRespDto = null;
    QueryMemberVirtualImageListReqDto queryMemberVirtualImageListReqDto=new QueryMemberVirtualImageListReqDto();
  if(reqDto!=null){
      queryMemberVirtualImageListReqDto.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:972357_1
      queryMemberVirtualImageListReqDto.setIsCustomImage(reqDto.getIsCustomImage());//SimpleFieldAssign//sourceId:947863_1
queryMemberVirtualImageListReqDto.setIsArchive(reqDto.getIsArchive());//SimpleFieldAssign//sourceId:947865_1
    }
  
    /*D2查询成员虚拟形象列表[6756]   */
    Assert.isNull(queryMemberVirtualImageListReqDto.getIsArchive(),"B2查询成员虚拟形象列表(管理)-D2查询成员虚拟形象列表-是否存档不能为空",false);
      queryMemberVirtualImageListRespDto = fwCompMessageClient.queryMemberVirtualImageList(queryMemberVirtualImageListReqDto).getData()/*vcase invoke 跨dubbo调用;*/;
      
      
      queryMemberVirtualImageListRespDto_1 = queryMemberVirtualImageListRespDto;
    
//步骤1: D1-3批量查询就职记录(管理)(公共) - batchQueryInductionRecordCom
     BatchQueryInductionRecordComRespDto batchQueryInductionRecordComRespDto = null;
    if(queryMemberVirtualImageListRespDto !=null){
          BatchQueryInductionRecordComReqDto batchQueryInductionRecordComReqDto=new BatchQueryInductionRecordComReqDto();
  if(queryMemberVirtualImageListRespDto!= null&&  queryMemberVirtualImageListRespDto.getMemberVirtualImageList() !=null&& !CollectionUtil.isEmpty(queryMemberVirtualImageListRespDto.getMemberVirtualImageList())){
      batchQueryInductionRecordComReqDto.setOrgInductionRecordList(queryMemberVirtualImageListRespDto.getMemberVirtualImageList().stream().map(item->item.getOperationInductionId())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:947867_1
    }
  
    /*D1-3批量查询就职记录(管理)(公共)[5024]   */
    
      batchQueryInductionRecordComRespDto = fwBaseInductionRecordClient.batchQueryInductionRecordCom(batchQueryInductionRecordComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;
      
      
      batchQueryInductionRecordComRespDto_1 = batchQueryInductionRecordComRespDto;
           }
    
BffQueryMemberVirtualImageListRespDto retData = new BffQueryMemberVirtualImageListRespDto();
  //数据集融合  MoreListToOneSource
        if(queryMemberVirtualImageListRespDto_1!= null && !CollectionUtil.isEmpty(queryMemberVirtualImageListRespDto_1.getMemberVirtualImageList()) ){
          for (MemberVirtualImageDto memberVirtualImageDto : queryMemberVirtualImageListRespDto_1.getMemberVirtualImageList()) {
              BffMemberVirtualImageDto retElm = new BffMemberVirtualImageDto();
             if(queryMemberVirtualImageListRespDto_1!=null){
      retElm.setMemberVirtualImageId(memberVirtualImageDto.getMemberVirtualImageId());//SimpleFieldAssign//sourceId:202637_2
retElm.setVirtualImageId(memberVirtualImageDto.getVirtualImageId());//SimpleFieldAssign//sourceId:202638_2
retElm.setOriginalRoleMemberId(memberVirtualImageDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:207342_2
retElm.setUserId(memberVirtualImageDto.getUserId());//SimpleFieldAssign//sourceId:202640_2
retElm.setSceneTypeCode(memberVirtualImageDto.getSceneTypeCode());//SimpleFieldAssign//sourceId:202641_2
retElm.setSceneSubTypeCode(memberVirtualImageDto.getSceneSubTypeCode());//SimpleFieldAssign//sourceId:213518_2
retElm.setVirtualImageViewType(memberVirtualImageDto.getVirtualImageViewType());//SimpleFieldAssign//sourceId:213519_2
retElm.setVirtualImageName(memberVirtualImageDto.getVirtualImageName());//SimpleFieldAssign//sourceId:207343_2
retElm.setVirtualImage(memberVirtualImageDto.getVirtualImage());//SimpleFieldAssign//sourceId:207344_2
retElm.setVirtualImageDesc(memberVirtualImageDto.getVirtualImageDesc());//SimpleFieldAssign//sourceId:207345_2
retElm.setCharacterClassicPhrase(memberVirtualImageDto.getCharacterClassicPhrase());//SimpleFieldAssign//sourceId:207346_2
retElm.setIsCustomImage(memberVirtualImageDto.getIsCustomImage());//SimpleFieldAssign//sourceId:202642_2
retElm.setIsOpen(memberVirtualImageDto.getIsOpen());//SimpleFieldAssign//sourceId:202643_2
retElm.setOpenTime(memberVirtualImageDto.getOpenTime());//SimpleFieldAssign//sourceId:202644_2
retElm.setSubjectLifeCycle(memberVirtualImageDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:202645_2
retElm.setOperationInductionId(memberVirtualImageDto.getOperationInductionId());//SimpleFieldAssign//sourceId:202646_2
retElm.setOperateTime(memberVirtualImageDto.getOperateTime());//SimpleFieldAssign//sourceId:202647_2
    }
              retData.getMemberVirtualImageList().add(retElm);
               if(batchQueryInductionRecordComRespDto_1!= null){
          for (OrgInductionRecordDto orgInductionRecordDto : batchQueryInductionRecordComRespDto_1.getOrgInductionRecordList()) {
                if (orgInductionRecordDto.getInductionRecordId().equals(memberVirtualImageDto.getOperationInductionId())) {
                 if(batchQueryInductionRecordComRespDto_1!=null){
retElm.setUserId(orgInductionRecordDto.getUserId());//SimpleFieldAssign//sourceId:202825_2
retElm.setIdCardName(orgInductionRecordDto.getIdCardName());//SimpleFieldAssign//sourceId:202650_2
retElm.setNickName(orgInductionRecordDto.getNickName());//SimpleFieldAssign//sourceId:202651_2
retElm.setUserFace(orgInductionRecordDto.getUserFace());//SimpleFieldAssign//sourceId:202649_2
    }
                }
            }
          }

          }
        }//sourceId:947873_1
  

  
  
return retData;
  }
/**
   * B2修改消息模板(管理)[6769]
   * gen by moon at 5/16/2023, 9:29:28 PM
   */
    @Trace(operationName = "B2修改消息模板(管理)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffUpdateMessageTemplateRespDto updateMessageTemplate(BffUpdateMessageTemplateReqDto reqDto){
      
       
       //步骤0: D2修改消息模板 - updateMessageTemplate
     UpdateMessageTemplateRespDto updateMessageTemplateRespDto = null;
    UpdateMessageTemplateReqDto updateMessageTemplateReqDto=new UpdateMessageTemplateReqDto();
  if(reqDto!=null){
      updateMessageTemplateReqDto.setMessageTemplateId(reqDto.getMessageTemplateId());//SimpleFieldAssign//sourceId:946930_1
updateMessageTemplateReqDto.setMessageTemplateName(reqDto.getMessageTemplateName());//SimpleFieldAssign//sourceId:946931_1
updateMessageTemplateReqDto.setMessageTemplateType(reqDto.getMessageTemplateType());//SimpleFieldAssign//sourceId:946933_1
updateMessageTemplateReqDto.setMessageContentUrl(reqDto.getMessageContentUrl());//SimpleFieldAssign//sourceId:946934_1
updateMessageTemplateReqDto.setMessageReadMode(reqDto.getMessageReadMode());//SimpleFieldAssign//sourceId:946935_1
updateMessageTemplateReqDto.setMessageDiffuse(reqDto.getMessageDiffuse());//SimpleFieldAssign//sourceId:946936_1
updateMessageTemplateReqDto.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:946937_1
    }
  
    /*D2修改消息模板[6768]   */
    Assert.isNull(updateMessageTemplateReqDto.getMessageTemplateId(),"B2修改消息模板(管理)-D2修改消息模板-消息模板ID不能为空",false);
      updateMessageTemplateRespDto = fwCompMessageClient.updateMessageTemplate(updateMessageTemplateReqDto).getData()/*vcase invoke 跨dubbo调用;*/;
      
      
      
    
BffUpdateMessageTemplateRespDto retData = new BffUpdateMessageTemplateRespDto();
  
  

  
  
return retData;
  }
/**
   * B2删除消息模板(管理)[6772]
   * gen by moon at 5/16/2023, 9:29:31 PM
   */
    @Trace(operationName = "B2删除消息模板(管理)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffDeleteMessageTemplateRespDto deleteMessageTemplate(BffDeleteMessageTemplateReqDto reqDto){
      
       
       //步骤0: D2删除消息模板 - deleteMessageTemplate
     DeleteMessageTemplateRespDto deleteMessageTemplateRespDto = null;
    DeleteMessageTemplateReqDto deleteMessageTemplateReqDto=new DeleteMessageTemplateReqDto();
  if(reqDto!=null){
      deleteMessageTemplateReqDto.setMessageTemplateId(reqDto.getMessageTemplateId());//SimpleFieldAssign//sourceId:948343_1
    }
  
    /*D2删除消息模板[6771]   */
    Assert.isNull(deleteMessageTemplateReqDto.getMessageTemplateId(),"B2删除消息模板(管理)-D2删除消息模板-消息模板ID不能为空",false);
      deleteMessageTemplateRespDto = fwCompMessageClient.deleteMessageTemplate(deleteMessageTemplateReqDto).getData()/*vcase invoke 跨dubbo调用;*/;
      
      
      
    
BffDeleteMessageTemplateRespDto retData = new BffDeleteMessageTemplateRespDto();
  
  

  
  
return retData;
  }
/**
   * B2存档消息模板(管理)[6774]
   * gen by moon at 5/16/2023, 9:29:34 PM
   */
    @Trace(operationName = "B2存档消息模板(管理)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffArchiveMessageTemplateRespDto archiveMessageTemplate(BffArchiveMessageTemplateReqDto reqDto){
      
       
       //步骤0: D2存档消息模板 - archiveMessageTemplate
     ArchiveMessageTemplateRespDto archiveMessageTemplateRespDto = null;
    ArchiveMessageTemplateReqDto archiveMessageTemplateReqDto=new ArchiveMessageTemplateReqDto();
  if(reqDto!=null){
      archiveMessageTemplateReqDto.setMessageTemplateId(reqDto.getMessageTemplateId());//SimpleFieldAssign//sourceId:948346_1
    }
  
    /*D2存档消息模板[6773]   */
    Assert.isNull(archiveMessageTemplateReqDto.getMessageTemplateId(),"B2存档消息模板(管理)-D2存档消息模板-消息模板ID不能为空",false);
      archiveMessageTemplateRespDto = fwCompMessageClient.archiveMessageTemplate(archiveMessageTemplateReqDto).getData()/*vcase invoke 跨dubbo调用;*/;
      
      
      
    
BffArchiveMessageTemplateRespDto retData = new BffArchiveMessageTemplateRespDto();
  
  

  
  
return retData;
  }
/**
   * B2查询消息模板详情(管理)[6776]
   * gen by moon at 5/17/2023, 4:08:26 AM
   */
    @Trace(operationName = "B2查询消息模板详情(管理)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffQueryMessageTemplateDetailRespDto queryMessageTemplateDetail(BffQueryMessageTemplateDetailReqDto reqDto){
      
       
       QueryMessageTemplateDetailRespDto queryMessageTemplateDetailRespDto_1 =null;
QueryInductionRecordInfoDetailComRespDto queryInductionRecordInfoDetailComRespDto_1 =null;
//步骤0: D2查询消息模板详情 - queryMessageTemplateDetail
     QueryMessageTemplateDetailRespDto queryMessageTemplateDetailRespDto = null;
    QueryMessageTemplateDetailReqDto queryMessageTemplateDetailReqDto=new QueryMessageTemplateDetailReqDto();
  if(reqDto!=null){
      queryMessageTemplateDetailReqDto.setMessageTemplateId(reqDto.getMessageTemplateId());//SimpleFieldAssign//sourceId:947132_1
    }
  
    /*D2查询消息模板详情[6775]   */
    
      queryMessageTemplateDetailRespDto = fwCompMessageClient.queryMessageTemplateDetail(queryMessageTemplateDetailReqDto).getData()/*vcase invoke 跨dubbo调用;*/;
      
      
      queryMessageTemplateDetailRespDto_1 = queryMessageTemplateDetailRespDto;
    
//步骤1: D1-3查询个人就职记录信息详情（公共） - queryInductionRecordInfoDetailCom
     QueryInductionRecordInfoDetailComRespDto queryInductionRecordInfoDetailComRespDto = null;
    if(queryMessageTemplateDetailRespDto !=null){
          QueryInductionRecordInfoDetailComReqDto queryInductionRecordInfoDetailComReqDto=new QueryInductionRecordInfoDetailComReqDto();
  if(queryMessageTemplateDetailRespDto!=null){
      queryInductionRecordInfoDetailComReqDto.setInductionRecordId(queryMessageTemplateDetailRespDto.getOperationInductionId());//SimpleFieldAssign//sourceId:947154_1
    }
  
    /*D1-3查询个人就职记录信息详情（公共）[715]   */
    Assert.isNull(queryInductionRecordInfoDetailComReqDto.getInductionRecordId(),"B2查询消息模板详情(管理)-D1-3查询个人就职记录信息详情（公共）-就职记录ID不能为空",false);
      queryInductionRecordInfoDetailComRespDto = fwBaseInductionRecordClient.queryInductionRecordInfoDetailCom(queryInductionRecordInfoDetailComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;
      
      
      queryInductionRecordInfoDetailComRespDto_1 = queryInductionRecordInfoDetailComRespDto;
           }
    
BffQueryMessageTemplateDetailRespDto retData = new BffQueryMessageTemplateDetailRespDto();
  if(queryMessageTemplateDetailRespDto_1!=null){
      retData.setMessageTemplateId(queryMessageTemplateDetailRespDto_1.getMessageTemplateId());//SimpleFieldAssign//sourceId:947410_1
retData.setMessageTemplateCode(queryMessageTemplateDetailRespDto_1.getMessageTemplateCode());//SimpleFieldAssign//sourceId:947411_1
retData.setMessageTemplateName(queryMessageTemplateDetailRespDto_1.getMessageTemplateName());//SimpleFieldAssign//sourceId:947412_1
retData.setRelationBehaviorTypeCode(queryMessageTemplateDetailRespDto_1.getRelationBehaviorTypeCode());//SimpleFieldAssign//sourceId:947413_1
//retData.setMessageChannelTypeCode(queryMessageTemplateDetailRespDto_1.getMessageChannelTypeCode());//SimpleFieldAssign//sourceId:947414_1
retData.setMessageTemplateType(queryMessageTemplateDetailRespDto_1.getMessageTemplateType());//SimpleFieldAssign//sourceId:947415_1
retData.setMessageContentUrl(queryMessageTemplateDetailRespDto_1.getMessageContentUrl());//SimpleFieldAssign//sourceId:947416_1
retData.setMessageReadMode(queryMessageTemplateDetailRespDto_1.getMessageReadMode());//SimpleFieldAssign//sourceId:947417_1
retData.setMessageDiffuse(queryMessageTemplateDetailRespDto_1.getMessageDiffuse());//SimpleFieldAssign//sourceId:947418_1
retData.setSubjectLifeCycle(queryMessageTemplateDetailRespDto_1.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:947420_1
retData.setOperationInductionId(queryMessageTemplateDetailRespDto_1.getOperationInductionId());//SimpleFieldAssign//sourceId:947421_1
retData.setOperateTime(queryMessageTemplateDetailRespDto_1.getOperateTime());//SimpleFieldAssign//sourceId:947422_1
    }
if(queryInductionRecordInfoDetailComRespDto_1!=null){
      retData.setUserId(queryInductionRecordInfoDetailComRespDto_1.getUserId());//SimpleFieldAssign//sourceId:949779_1
retData.setOriginalRoleMemberId(queryInductionRecordInfoDetailComRespDto_1.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:949778_1
retData.setIdCardName(queryInductionRecordInfoDetailComRespDto_1.getIdCardName());//SimpleFieldAssign//sourceId:947424_1
retData.setNickName(queryInductionRecordInfoDetailComRespDto_1.getNickName());//SimpleFieldAssign//sourceId:947425_1
retData.setUserFace(queryInductionRecordInfoDetailComRespDto_1.getUserFace());//SimpleFieldAssign//sourceId:947426_1
    }
  

  
  
return retData;
  }
/**
   * B2-5新增消息位置(管理)[6787]
   * gen by moon at 5/17/2023, 4:08:29 AM
   */
    @Trace(operationName = "B2-5新增消息位置(管理)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffAddMessagePositionRespDto addMessagePosition(BffAddMessagePositionReqDto reqDto){
      
       
       AddMessagePositionRespDto addMessagePositionRespDto_1 =null;
//步骤0: D2新增消息位置 - addMessagePosition
     AddMessagePositionRespDto addMessagePositionRespDto = null;
    AddMessagePositionReqDto addMessagePositionReqDto=new AddMessagePositionReqDto();
  if(reqDto!=null){
      addMessagePositionReqDto.setSuperiorMessageLocationId(reqDto.getSuperiorMessageLocationId());//SimpleFieldAssign//sourceId:949085_1
addMessagePositionReqDto.setParentLocationCode(reqDto.getParentLocationCode());//SimpleFieldAssign//sourceId:949086_1
addMessagePositionReqDto.setMessageLocationTypeCode(reqDto.getMessageLocationTypeCode());//SimpleFieldAssign//sourceId:949087_1
addMessagePositionReqDto.setContentTypeCode(reqDto.getContentTypeCode());//SimpleFieldAssign//sourceId:949088_1
addMessagePositionReqDto.setRemindTypeCode(reqDto.getRemindTypeCode());//SimpleFieldAssign//sourceId:949089_1
addMessagePositionReqDto.setStratum(reqDto.getStratum());//SimpleFieldAssign//sourceId:949091_1
addMessagePositionReqDto.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:949092_1
    }
  
    /*D2新增消息位置[6764]   */
    Assert.isNull(addMessagePositionReqDto.getMessageLocationTypeCode(),"B2-5新增消息位置(管理)-D2新增消息位置-消息位置标识不能为空",false);
Assert.isNull(addMessagePositionReqDto.getContentTypeCode(),"B2-5新增消息位置(管理)-D2新增消息位置-消息使用子场景类型编码不能为空",false);
Assert.isNull(addMessagePositionReqDto.getRemindTypeCode(),"B2-5新增消息位置(管理)-D2新增消息位置-位置提醒类型不能为空",false);
Assert.isNull(addMessagePositionReqDto.getStratum(),"B2-5新增消息位置(管理)-D2新增消息位置-层级不能为空",false);
Assert.isNull(addMessagePositionReqDto.getSubjectLifeCycle(),"B2-5新增消息位置(管理)-D2新增消息位置-主体生命周期不能为空",false);
      addMessagePositionRespDto = fwCompMessageClient.addMessagePosition(addMessagePositionReqDto).getData()/*vcase invoke 跨dubbo调用;*/;
      
      
      addMessagePositionRespDto_1 = addMessagePositionRespDto;
    
BffAddMessagePositionRespDto retData = new BffAddMessagePositionRespDto();
  if(addMessagePositionRespDto_1!=null){
      retData.setMessageLocationId(addMessagePositionRespDto_1.getMessageLocationId());//SimpleFieldAssign//sourceId:949103_1
    }
  

  
  
return retData;
  }
/**
   * B2-5查询消息位置详情(管理)[6789]
   * gen by moon at 12/12/2023, 5:33:25 AM
   */
    @Trace(operationName = "B2-5查询消息位置详情(管理)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffQueryMessagePositionDetailRespDto queryMessagePositionDetail(BffQueryMessagePositionDetailReqDto reqDto){
      
       
       QueryMessagePositionDetailComRespDto queryMessagePositionDetailComRespDto_1 =null;
QueryInductionRecordDetailBorderRespDto queryInductionRecordDetailBorderRespDto_1 =null;
//步骤0: D2-5查询消息位置详情(公共) - queryMessagePositionDetailCom
     QueryMessagePositionDetailComRespDto queryMessagePositionDetailComRespDto = null;
    QueryMessagePositionDetailComReqDto queryMessagePositionDetailComReqDto=new QueryMessagePositionDetailComReqDto();
  if(reqDto!=null){
      queryMessagePositionDetailComReqDto.setMessageLocationId(reqDto.getMessageLocationId());//SimpleFieldAssign//sourceId:949151_1
    }
  
    /*D2-5查询消息位置详情(公共)[6788]   */
    Assert.isNull(queryMessagePositionDetailComReqDto.getMessageLocationId(),"B2-5查询消息位置详情(管理)-D2-5查询消息位置详情(公共)-消息位置ID不能为空",false);
      queryMessagePositionDetailComRespDto = fwCompMessageClient.queryMessagePositionDetailCom(queryMessagePositionDetailComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;
      
      
      queryMessagePositionDetailComRespDto_1 = queryMessagePositionDetailComRespDto;
    
//步骤1: D1-3查询就职记录详情(边界) - queryInductionRecordDetailBorder
     QueryInductionRecordDetailBorderRespDto queryInductionRecordDetailBorderRespDto = null;
    if(queryMessagePositionDetailComRespDto !=null){
          QueryInductionRecordDetailBorderReqDto queryInductionRecordDetailBorderReqDto=new QueryInductionRecordDetailBorderReqDto();
  queryInductionRecordDetailBorderReqDto.setSubjectLifeCycle("CURRENTLY_VALID");//sourceId:949164_1
if(queryMessagePositionDetailComRespDto!=null){
      queryInductionRecordDetailBorderReqDto.setInductionRecordId(queryMessagePositionDetailComRespDto.getOperationInductionId());//SimpleFieldAssign//sourceId:949176_1
    }
  
    /*D1-3查操作人就职记录信息[1340]   */
    Assert.isNull(queryInductionRecordDetailBorderReqDto.getInductionRecordId(),"B2-5查询消息位置详情(管理)-D1-3查操作人就职记录信息-就职记录ID不能为空",false);
Assert.isNull(queryInductionRecordDetailBorderReqDto.getSubjectLifeCycle(),"B2-5查询消息位置详情(管理)-D1-3查操作人就职记录信息-主体生命周期不能为空",false);
      queryInductionRecordDetailBorderRespDto = fwBaseInductionRecordClient.queryInductionRecordDetailBorder(queryInductionRecordDetailBorderReqDto).getData()/*vcase invoke 跨dubbo调用;*/;
      
      
      queryInductionRecordDetailBorderRespDto_1 = queryInductionRecordDetailBorderRespDto;
           }
    
BffQueryMessagePositionDetailRespDto retData = new BffQueryMessagePositionDetailRespDto();
  if(queryMessagePositionDetailComRespDto_1!=null){
      retData.setMessageLocationId(queryMessagePositionDetailComRespDto_1.getMessageLocationId());//SimpleFieldAssign//sourceId:949184_1
retData.setLocationCode(queryMessagePositionDetailComRespDto_1.getLocationCode());//SimpleFieldAssign//sourceId:949185_1
retData.setMessageLocationCode(queryMessagePositionDetailComRespDto_1.getMessageLocationCode());//SimpleFieldAssign//sourceId:949186_1
retData.setRemindTypeCode(queryMessagePositionDetailComRespDto_1.getRemindTypeCode());//SimpleFieldAssign//sourceId:949187_1
retData.setSuperiorMessageLocationId(queryMessagePositionDetailComRespDto_1.getSuperiorMessageLocationId());//SimpleFieldAssign//sourceId:949188_1
retData.setContentTypeCode(queryMessagePositionDetailComRespDto_1.getContentTypeCode());//SimpleFieldAssign//sourceId:949189_1
retData.setStratum(queryMessagePositionDetailComRespDto_1.getStratum());//SimpleFieldAssign//sourceId:949191_1
retData.setSubjectLifeCycle(queryMessagePositionDetailComRespDto_1.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:949192_1
retData.setOperationInductionId(queryMessagePositionDetailComRespDto_1.getOperationInductionId());//SimpleFieldAssign//sourceId:949193_1
retData.setOperateTime(queryMessagePositionDetailComRespDto_1.getOperateTime());//SimpleFieldAssign//sourceId:949194_1
    }
if(queryInductionRecordDetailBorderRespDto_1!=null){
      retData.setIdCardName(queryInductionRecordDetailBorderRespDto_1.getIdCardName());//SimpleFieldAssign//sourceId:949195_1
retData.setNickName(queryInductionRecordDetailBorderRespDto_1.getNickName());//SimpleFieldAssign//sourceId:949196_1
    }
  

  
  
return retData;
  }
/**
   * B2-5查询消息位置列表(管理)[6790]
   * gen by moon at 5/17/2023, 4:08:35 AM
   */
    @Trace(operationName = "B2-5查询消息位置列表(管理)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffQueryMessagePositionListRespDto queryMessagePositionList(BffQueryMessagePositionListReqDto reqDto){
      
       
       QueryMessagePositionListRespDto queryMessagePositionListRespDto_1 =null;
BatchQueryInductionRecordListComRespDto batchQueryInductionRecordListComRespDto_1 =null;
//步骤0: D2-5查询消息位置列表 - queryMessagePositionList
     QueryMessagePositionListRespDto queryMessagePositionListRespDto = null;
    QueryMessagePositionListReqDto queryMessagePositionListReqDto=new QueryMessagePositionListReqDto();
  if(reqDto!=null){
      queryMessagePositionListReqDto.setContentTypeCode(reqDto.getContentTypeCode());//SimpleFieldAssign//sourceId:949214_1
queryMessagePositionListReqDto.setRemindTypeCode(reqDto.getRemindTypeCode());//SimpleFieldAssign//sourceId:949215_1
queryMessagePositionListReqDto.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:949217_1
    }
  
    /*D2-5查询消息位置列表[6791]   */
    Assert.isNull(queryMessagePositionListReqDto.getSubjectLifeCycle(),"B2-5查询消息位置列表(管理)-D2-5查询消息位置列表-主体生命周期不能为空",false);
      queryMessagePositionListRespDto = fwCompMessageClient.queryMessagePositionList(queryMessagePositionListReqDto).getData()/*vcase invoke 跨dubbo调用;*/;
      
      
      queryMessagePositionListRespDto_1 = queryMessagePositionListRespDto;
    
//步骤1: D1-3批量查询就职记录列表（公共） - batchQueryInductionRecordListCom
     BatchQueryInductionRecordListComRespDto batchQueryInductionRecordListComRespDto = null;
    if(queryMessagePositionListRespDto !=null){
          BatchQueryInductionRecordListComReqDto batchQueryInductionRecordListComReqDto=new BatchQueryInductionRecordListComReqDto();
  if(queryMessagePositionListRespDto!= null&&  queryMessagePositionListRespDto.getMessagePositionList() !=null&& !CollectionUtil.isEmpty(queryMessagePositionListRespDto.getMessagePositionList())){
      batchQueryInductionRecordListComReqDto.setPerOrgInductionRecordList(queryMessagePositionListRespDto.getMessagePositionList().stream().map(item->item.getOperationInductionId())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:949197_1
    }
  
    /*D1-3批量查询就职记录列表（公共）[602]   */
    
      batchQueryInductionRecordListComRespDto = fwBaseInductionRecordClient.batchQueryInductionRecordListCom(batchQueryInductionRecordListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;
      
      
      batchQueryInductionRecordListComRespDto_1 = batchQueryInductionRecordListComRespDto;
           }
    
BffQueryMessagePositionListRespDto retData = new BffQueryMessagePositionListRespDto();
  //数据集融合  MoreListToOneSource
        if(queryMessagePositionListRespDto_1!= null && !CollectionUtil.isEmpty(queryMessagePositionListRespDto_1.getMessagePositionList()) ){
          for (MessagePositionDto messagePositionDto : queryMessagePositionListRespDto_1.getMessagePositionList()) {
              BffMessagePositionDto retElm = new BffMessagePositionDto();
             if(queryMessagePositionListRespDto_1!=null){
      retElm.setMessageLocationId(messagePositionDto.getMessageLocationId());//SimpleFieldAssign//sourceId:202788_2
retElm.setLocationCode(messagePositionDto.getLocationCode());//SimpleFieldAssign//sourceId:202789_2
retElm.setSuperiorMessageLocationId(messagePositionDto.getSuperiorMessageLocationId());//SimpleFieldAssign//sourceId:202790_2
retElm.setMessageLocationCode(messagePositionDto.getMessageLocationCode());//SimpleFieldAssign//sourceId:202791_2
retElm.setContentTypeCode(messagePositionDto.getContentTypeCode());//SimpleFieldAssign//sourceId:202792_2
retElm.setRemindTypeCode(messagePositionDto.getRemindTypeCode());//SimpleFieldAssign//sourceId:202793_2
retElm.setMessageChannelTypeCode(messagePositionDto.getMessageChannelTypeCode());//SimpleFieldAssign//sourceId:202794_2
retElm.setStratum(messagePositionDto.getStratum());//SimpleFieldAssign//sourceId:202795_2
retElm.setSubjectLifeCycle(messagePositionDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:202796_2
retElm.setOperationInductionId(messagePositionDto.getOperationInductionId());//SimpleFieldAssign//sourceId:202797_2
retElm.setOperateTime(messagePositionDto.getOperateTime());//SimpleFieldAssign//sourceId:202798_2
    }
              retData.getMessagePositionList().add(retElm);
               if(batchQueryInductionRecordListComRespDto_1!= null){
          for (PerOrgInductionRecordDto perOrgInductionRecordDto : batchQueryInductionRecordListComRespDto_1.getPerOrgInductionRecordList()) {
                if (perOrgInductionRecordDto.getInductionRecordId().equals(messagePositionDto.getOperationInductionId())) {
                 if(batchQueryInductionRecordListComRespDto_1!=null){
      retElm.setUserFace(perOrgInductionRecordDto.getUserFace());//SimpleFieldAssign//sourceId:202801_2
retElm.setIdCardName(perOrgInductionRecordDto.getIdCardName());//SimpleFieldAssign//sourceId:202799_2
retElm.setNickName(perOrgInductionRecordDto.getNickName());//SimpleFieldAssign//sourceId:202800_2
    }
                }
            }
          }

          }
        }//sourceId:949226_1
  

  
  
return retData;
  }
/**
   * B2-5删除消息位置(管理)[6792]
   * gen by moon at 5/16/2023, 9:29:51 PM
   */
    @Trace(operationName = "B2-5删除消息位置(管理)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffDeleteMessagePositionRespDto deleteMessagePosition(BffDeleteMessagePositionReqDto reqDto){
      
       
       //步骤0: D2-5删除消息位置 - deleteMessagePosition
     DeleteMessagePositionRespDto deleteMessagePositionRespDto = null;
    DeleteMessagePositionReqDto deleteMessagePositionReqDto=new DeleteMessagePositionReqDto();
  if(reqDto!=null){
      deleteMessagePositionReqDto.setMessageLocationId(reqDto.getMessageLocationId());//SimpleFieldAssign//sourceId:949427_1
    }
  
    /*D2-5删除消息位置[6793]   */
    Assert.isNull(deleteMessagePositionReqDto.getMessageLocationId(),"B2-5删除消息位置(管理)-D2-5删除消息位置-消息位置ID不能为空",false);
      deleteMessagePositionRespDto = fwCompMessageClient.deleteMessagePosition(deleteMessagePositionReqDto).getData()/*vcase invoke 跨dubbo调用;*/;
      
      
      
    
BffDeleteMessagePositionRespDto retData = new BffDeleteMessagePositionRespDto();
  
  

  
  
return retData;
  }
/**
   * B2-5修改消息位置(管理)[6795]
   * gen by moon at 5/17/2023, 4:08:39 AM
   */
    @Trace(operationName = "B2-5修改消息位置(管理)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffUpdateMessagePositionRespDto updateMessagePosition(BffUpdateMessagePositionReqDto reqDto){
      
       
       //步骤0: D2-5修改消息位置 - updateMessagePosition
     UpdateMessagePositionRespDto updateMessagePositionRespDto = null;
    UpdateMessagePositionReqDto updateMessagePositionReqDto=new UpdateMessagePositionReqDto();
  if(reqDto!=null){
      updateMessagePositionReqDto.setMessageLocationId(reqDto.getMessageLocationId());//SimpleFieldAssign//sourceId:949687_1
updateMessagePositionReqDto.setContentTypeCode(reqDto.getContentTypeCode());//SimpleFieldAssign//sourceId:949688_1
updateMessagePositionReqDto.setRemindTypeCode(reqDto.getRemindTypeCode());//SimpleFieldAssign//sourceId:949689_1
updateMessagePositionReqDto.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:949691_1
    }
  
    /*D2-5修改消息位置[6796]   */
    Assert.isNull(updateMessagePositionReqDto.getMessageLocationId(),"B2-5修改消息位置(管理)-D2-5修改消息位置-消息位置ID不能为空",false);
      updateMessagePositionRespDto = fwCompMessageClient.updateMessagePosition(updateMessagePositionReqDto).getData()/*vcase invoke 跨dubbo调用;*/;
      
      
      
    
BffUpdateMessagePositionRespDto retData = new BffUpdateMessagePositionRespDto();
  
  

  
  
return retData;
  }
/**
   * B2关闭或启用成员虚拟形象(管理)[6758]
   * gen by moon at 6/2/2023, 8:24:13 PM
   */
    @Trace(operationName = "B2关闭或启用成员虚拟形象(管理)")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffUpdateMemberVirtualImageRespDto updateMemberVirtualImage(BffUpdateMemberVirtualImageReqDto reqDto){


       //步骤0: D2修改成员虚拟形象 - updateMemberVirtualImage
     UpdateMemberVirtualImageRespDto updateMemberVirtualImageRespDto = null;
    UpdateMemberVirtualImageReqDto updateMemberVirtualImageReqDto=new UpdateMemberVirtualImageReqDto();
  if(reqDto!=null){
      updateMemberVirtualImageReqDto.setMemberVirtualImageId(reqDto.getMemberVirtualImageId());//SimpleFieldAssign//sourceId:948064_1
updateMemberVirtualImageReqDto.setIsOpen(reqDto.getIsOpen());//SimpleFieldAssign//sourceId:948065_1
    }

    /*D2修改成员虚拟形象[6753]   */
    Assert.isNull(updateMemberVirtualImageReqDto.getMemberVirtualImageId(),"B2关闭或启用成员虚拟形象(管理)-D2修改成员虚拟形象-身份人员选用虚拟形象关系ID不能为空",false);
Assert.isNull(updateMemberVirtualImageReqDto.getIsOpen(),"B2关闭或启用成员虚拟形象(管理)-D2修改成员虚拟形象-是否已启用不能为空",false);
      updateMemberVirtualImageRespDto = fwCompMessageClient.updateMemberVirtualImage(updateMemberVirtualImageReqDto).getData()/*vcase invoke 跨dubbo调用;*/;




BffUpdateMemberVirtualImageRespDto retData = new BffUpdateMemberVirtualImageRespDto();





return retData;
  }
/**
   * B3-执行多空间补偿初始化消息数量（平台）[8345]
   * gen by moon at 1/25/2024, 3:06:06 AM
   */
    @Trace(operationName = "B3-执行多空间补偿初始化消息数量（平台）")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffImplementMultiSpaceCompinitMsgLocQtyRespDto implementMultiSpaceCompinitMsgLocQty(BffImplementMultiSpaceCompinitMsgLocQtyReqDto reqDto){


       //步骤0: D3-执行多空间补偿初始化消息数量(公共) - implementMultiSpaceCompinitMsgLocQtyCom
     ImplementMultiSpaceCompinitMsgLocQtyComRespDto implementMultiSpaceCompinitMsgLocQtyComRespDto = null;
    ImplementMultiSpaceCompinitMsgLocQtyComReqDto implementMultiSpaceCompinitMsgLocQtyComReqDto=new ImplementMultiSpaceCompinitMsgLocQtyComReqDto();
  if(reqDto!=null){
      implementMultiSpaceCompinitMsgLocQtyComReqDto.setIsPlatformOpt(reqDto.getIsPlatformOpt());//SimpleFieldAssign//sourceId:1505089_1
implementMultiSpaceCompinitMsgLocQtyComReqDto.setSpaceId(reqDto.getSpaceId());//SimpleFieldAssign//sourceId:1505090_1
    }

    /*D3-执行多空间补偿初始化消息数量(公共)[8344]   */

      implementMultiSpaceCompinitMsgLocQtyComRespDto = fwAppMessageClient.implementMultiSpaceCompinitMsgLocQtyCom(implementMultiSpaceCompinitMsgLocQtyComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;




BffImplementMultiSpaceCompinitMsgLocQtyRespDto retData = new BffImplementMultiSpaceCompinitMsgLocQtyRespDto();





return retData;
  }
  //
}
